home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / config < prev    next >
Text File  |  1993-11-02  |  1KB  |  40 lines

  1. #
  2. # GeomView/OOGL configuration file.
  3. #
  4. # You should 'source' this file before compiling GeomView/OOGL.  Do
  5. # this only while you are at the root of the source tree (the current
  6. # directory should be the one containing this file)!
  7.  
  8. # The purpose of this script is to set the environment variable CPU.
  9. # (It should be "iris4" on an SGI, and "NeXT" on a NeXT.)  You should
  10. # source this file in every shell in which you plan to do compilation
  11. # in the Geomview/OOGL source tree.
  12.  
  13. # This file assumes you're using csh (or some equivalent shell) !!!
  14.  
  15. # It is not necessary to source this file in order to run geomview
  16. # or any of the programs in this directory.  It is only needed
  17. # for compilation.
  18.  
  19. ########################################################################
  20.  
  21. if ( { test -d data } ) then
  22.   set geomroot = $cwd
  23.   if ( { test -f /mach } ) then
  24.     setenv CPU NeXT
  25.     echo ''
  26.     echo 'This shell configured for compiling on a NeXT.'
  27.     echo ''
  28.   else
  29.     setenv CPU iris4
  30.     echo ''
  31.     echo 'This shell configured for compiling on an SGI IRIS.'
  32.     echo ''
  33.   endif
  34. else
  35.   echo 'You do not appear to be in the Geomview root directory;'
  36.   echo 'cd to the Geomview root directory (the one containing,'
  37.   echo 'among other things, subdirectories "bin" and "data")'
  38.   echo 'and try again.'
  39. endif
  40.